﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace backend.Models;

// 二级区域
[Table("SecondClass")]
public partial class SecondClass
{
    [Key]
    [Column("SC_ID")]
    [StringLength(8)]
    [Unicode(false)]
    public string ScId { get; set; } = null!;

    [Column("FC_ID")]
    [StringLength(8)]
    [Unicode(false)]
    public string FcId { get; set; } = null!;

    [Column("SC_Name")]
    [StringLength(32)]
    public string ScName { get; set; } = null!;

    [ForeignKey("FcId")]
    [InverseProperty("SecondClasses")]
    public virtual FirstClass Fc { get; set; } = null!;
}
